import { createApp } from "vue";
import { createPinia } from "pinia";

import App from "./App.vue";
import router from "./router";
import "@/utils/rem"; //转rem
import formatTime from "@/directives/formatTime";

import "@/assets/main.css";
import "@/style/app.scss";

const app = createApp(App);

app.use(createPinia()).use(router).use(formatTime).mount("#app");
// interface IProps {
//   (num: number): void;
//   aaa(num: number): void;
// }
const obj = (num: number) => {
  console.log(222);
};
obj.aaa = (num) => {
  console.log(num);
};
console.log(Reflect.has(obj, "aaa"));
console.log(obj.prototype);
